<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var list = new Array(83, 75, 65, 59.5, 92);
        document.write("5门成绩分别是：" + list[0] + ',' + list[1] + ',' + list[2] + ',' + list[3] + ',' + list[4]);
        var sum = 0;
        var max = list[0];
        var min = list[0];
        for (var i = 0; i < list.length; i++) {
            sum += list[i];
            if (max < list[i]) {
                max = list[i];
            }
            if (min > list[i]) {
                min = list[i];
            }
        }
        document.write('<br>' + '总分是：' + sum + '<br>');
        document.write('平均分' + sum / 5 + '<br>');
        document.write('最高分:' + max + '<br>');
        document.write('最低分' + min + '<br>');
    </script>
</body>

</html>